#define _CRT_SECURE_NO_WARNINGS 1
#include"Sort.h"

void TestSelectSort(int*a ,int n)
{
	SelectSort(a, n);
	PrintArr(a, n);
}
void TestInsertSort(int* a, int n)
{
	InsertSort(a, n);
	PrintArr(a, n);
}

void TestShellSort(int* a, int n)
{
	ShellSort(a, n);
	PrintArr(a, n);
}




void TestHeapSort(int* a, int n )
{
	HeapSort(a, n);
	PrintArr(a, n);
}

int main()
{
	int a[] = { 9,1,2,5,7,4,8,6,3,5 };
	TestSelectSort(a, sizeof(a) / sizeof(a[0]));
	//TestInsertSort(a, sizeof(a) / sizeof(a[0]));
	//TestShellSort(a, sizeof(a) / sizeof(a[0]));
	TestHeapSort(a, sizeof(a) / sizeof(a[0]));
	return 0;
}